<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__sar2__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__sar2.html">SAR2         (Analog to Digital Converter (ADC))</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gad6ddc69b82b06fda5952c5da00de35ed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gad6ddc69b82b06fda5952c5da00de35ed">Cy_SAR2_Init</a> (PASS_SAR_Type *base, const <a class="el" href="structcy__stc__sar2__config__t.html">cy_stc_sar2_config_t</a> *config)</td></tr>
<tr class="memdesc:gad6ddc69b82b06fda5952c5da00de35ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the SAR2 block.  <a href="#gad6ddc69b82b06fda5952c5da00de35ed">More...</a><br /></td></tr>
<tr class="separator:gad6ddc69b82b06fda5952c5da00de35ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4a6b0afc4f6ff937cdcd885c6b039adb"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga4a6b0afc4f6ff937cdcd885c6b039adb">Cy_SAR2_DeInit</a> (PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:ga4a6b0afc4f6ff937cdcd885c6b039adb"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-initializes the SAR ADC block, returns the register values to default.  <a href="#ga4a6b0afc4f6ff937cdcd885c6b039adb">More...</a><br /></td></tr>
<tr class="separator:ga4a6b0afc4f6ff937cdcd885c6b039adb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae928dc6cfa80e6ee015be6aac6fc759e"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gae928dc6cfa80e6ee015be6aac6fc759e">Cy_SAR2_Enable</a> (PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:gae928dc6cfa80e6ee015be6aac6fc759e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the SAR ADC block.  <a href="#gae928dc6cfa80e6ee015be6aac6fc759e">More...</a><br /></td></tr>
<tr class="separator:gae928dc6cfa80e6ee015be6aac6fc759e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3c9fe108014e660a2a2fdbfd51498641"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga3c9fe108014e660a2a2fdbfd51498641">Cy_SAR2_Disable</a> (PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:ga3c9fe108014e660a2a2fdbfd51498641"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the SAR ADC block.  <a href="#ga3c9fe108014e660a2a2fdbfd51498641">More...</a><br /></td></tr>
<tr class="separator:ga3c9fe108014e660a2a2fdbfd51498641"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf3446eecc0c429c1c48015c63caa7abd"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gaf3446eecc0c429c1c48015c63caa7abd">Cy_SAR2_GetPendingStatus</a> (const PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:gaf3446eecc0c429c1c48015c63caa7abd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the trigger pending status.  <a href="#gaf3446eecc0c429c1c48015c63caa7abd">More...</a><br /></td></tr>
<tr class="separator:gaf3446eecc0c429c1c48015c63caa7abd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga060e3a398367dfd3ebb8c3ffdf4d8c69"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga060e3a398367dfd3ebb8c3ffdf4d8c69">Cy_SAR2_GetWorkValidStatus</a> (const PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:ga060e3a398367dfd3ebb8c3ffdf4d8c69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the work register valid status.  <a href="#ga060e3a398367dfd3ebb8c3ffdf4d8c69">More...</a><br /></td></tr>
<tr class="separator:ga060e3a398367dfd3ebb8c3ffdf4d8c69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga461d4899aa62e578515fc635a85c3317"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga461d4899aa62e578515fc635a85c3317">Cy_SAR2_GetWorkRangeStatus</a> (const PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:ga461d4899aa62e578515fc635a85c3317"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns work register range status.  <a href="#ga461d4899aa62e578515fc635a85c3317">More...</a><br /></td></tr>
<tr class="separator:ga461d4899aa62e578515fc635a85c3317"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1600ba3065a78a4486df1a4a40b33bb6"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga1600ba3065a78a4486df1a4a40b33bb6">Cy_SAR2_GetWorkRangeHiStatus</a> (const PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:ga1600ba3065a78a4486df1a4a40b33bb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns work register range high status.  <a href="#ga1600ba3065a78a4486df1a4a40b33bb6">More...</a><br /></td></tr>
<tr class="separator:ga1600ba3065a78a4486df1a4a40b33bb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaafaff5c36852904ebb905bf2b5e0a305"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gaafaff5c36852904ebb905bf2b5e0a305">Cy_SAR2_GetWorkPulseStatus</a> (const PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:gaafaff5c36852904ebb905bf2b5e0a305"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the work register pulse status.  <a href="#gaafaff5c36852904ebb905bf2b5e0a305">More...</a><br /></td></tr>
<tr class="separator:gaafaff5c36852904ebb905bf2b5e0a305"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae5aadfc77328c0fe7cec48d8552aef92"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gae5aadfc77328c0fe7cec48d8552aef92">Cy_SAR2_GetResultValidStatus</a> (const PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:gae5aadfc77328c0fe7cec48d8552aef92"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns result register valid status.  <a href="#gae5aadfc77328c0fe7cec48d8552aef92">More...</a><br /></td></tr>
<tr class="separator:gae5aadfc77328c0fe7cec48d8552aef92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacdd2a6f933a93fa1a043af11bc88b434"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gacdd2a6f933a93fa1a043af11bc88b434">Cy_SAR2_GetResultRangeHiStatus</a> (const PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:gacdd2a6f933a93fa1a043af11bc88b434"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns result register range high status.  <a href="#gacdd2a6f933a93fa1a043af11bc88b434">More...</a><br /></td></tr>
<tr class="separator:gacdd2a6f933a93fa1a043af11bc88b434"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga20289a8407d268ade39d00c18a7c14b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga20289a8407d268ade39d00c18a7c14b8">Cy_SAR2_Channel_Init</a> (PASS_SAR_Type *base, uint32_t channel, const <a class="el" href="structcy__stc__sar2__channel__config__t.html">cy_stc_sar2_channel_config_t</a> *channelConfig)</td></tr>
<tr class="memdesc:ga20289a8407d268ade39d00c18a7c14b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes an SAR channel.  <a href="#ga20289a8407d268ade39d00c18a7c14b8">More...</a><br /></td></tr>
<tr class="separator:ga20289a8407d268ade39d00c18a7c14b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga73cc410d2594eb95b59957c1e22b7029"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga73cc410d2594eb95b59957c1e22b7029">Cy_SAR2_Channel_DeInit</a> (PASS_SAR_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga73cc410d2594eb95b59957c1e22b7029"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops and de-initializes the SAR channel register.  <a href="#ga73cc410d2594eb95b59957c1e22b7029">More...</a><br /></td></tr>
<tr class="separator:ga73cc410d2594eb95b59957c1e22b7029"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6cf749ec06d3ab25ce139975f7baafcf"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga6cf749ec06d3ab25ce139975f7baafcf">Cy_SAR2_Channel_GetResult</a> (PASS_SAR_Type *base, uint32_t channel, uint32_t *status)</td></tr>
<tr class="memdesc:ga6cf749ec06d3ab25ce139975f7baafcf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the conversion result and status.  <a href="#ga6cf749ec06d3ab25ce139975f7baafcf">More...</a><br /></td></tr>
<tr class="separator:ga6cf749ec06d3ab25ce139975f7baafcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga89d10dfaf605ba3a0455661377bc945d"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga89d10dfaf605ba3a0455661377bc945d">Cy_SAR2_Channel_GetWorkingData</a> (PASS_SAR_Type *base, uint32_t channel, uint32_t *status)</td></tr>
<tr class="memdesc:ga89d10dfaf605ba3a0455661377bc945d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the working data and status.  <a href="#ga89d10dfaf605ba3a0455661377bc945d">More...</a><br /></td></tr>
<tr class="separator:ga89d10dfaf605ba3a0455661377bc945d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4cacd25abceca217f1dc8895173279b7"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga4cacd25abceca217f1dc8895173279b7">Cy_SAR2_Channel_GetGroupStatus</a> (PASS_SAR_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga4cacd25abceca217f1dc8895173279b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the group conversion status.  <a href="#ga4cacd25abceca217f1dc8895173279b7">More...</a><br /></td></tr>
<tr class="separator:ga4cacd25abceca217f1dc8895173279b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2a109083e1c5a54d5078aad24e27577f"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga2a109083e1c5a54d5078aad24e27577f">Cy_SAR2_Channel_Enable</a> (PASS_SAR_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga2a109083e1c5a54d5078aad24e27577f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables a corresponding channel.  <a href="#ga2a109083e1c5a54d5078aad24e27577f">More...</a><br /></td></tr>
<tr class="separator:ga2a109083e1c5a54d5078aad24e27577f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac798c61bb7491fcbd614195ed1247c9c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gac798c61bb7491fcbd614195ed1247c9c">Cy_SAR2_Channel_Disable</a> (PASS_SAR_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:gac798c61bb7491fcbd614195ed1247c9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables a corresponding channel.  <a href="#gac798c61bb7491fcbd614195ed1247c9c">More...</a><br /></td></tr>
<tr class="separator:gac798c61bb7491fcbd614195ed1247c9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga07a7023e4f6db655204d25a21b036651"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga07a7023e4f6db655204d25a21b036651">Cy_SAR2_Channel_SoftwareTrigger</a> (PASS_SAR_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga07a7023e4f6db655204d25a21b036651"><td class="mdescLeft">&#160;</td><td class="mdescRight">Issues a software start trigger.  <a href="#ga07a7023e4f6db655204d25a21b036651">More...</a><br /></td></tr>
<tr class="separator:ga07a7023e4f6db655204d25a21b036651"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaec97a2bde0497f5e95deb60a5e9d081a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gaec97a2bde0497f5e95deb60a5e9d081a">Cy_SAR2_Channel_SetInterruptMask</a> (PASS_SAR_Type *base, uint32_t channel, uint32_t intrMask)</td></tr>
<tr class="memdesc:gaec97a2bde0497f5e95deb60a5e9d081a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the channel interrupt.  <a href="#gaec97a2bde0497f5e95deb60a5e9d081a">More...</a><br /></td></tr>
<tr class="separator:gaec97a2bde0497f5e95deb60a5e9d081a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1ea93e0b0cfafac4bfe7544933e16b30"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga1ea93e0b0cfafac4bfe7544933e16b30">Cy_SAR2_Channel_GetInterruptMask</a> (PASS_SAR_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga1ea93e0b0cfafac4bfe7544933e16b30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns interrupt mask configuration.  <a href="#ga1ea93e0b0cfafac4bfe7544933e16b30">More...</a><br /></td></tr>
<tr class="separator:ga1ea93e0b0cfafac4bfe7544933e16b30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3038fbd14b4fef98a91a8713c559472d"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga3038fbd14b4fef98a91a8713c559472d">Cy_SAR2_Channel_ClearInterrupt</a> (PASS_SAR_Type *base, uint32_t channel, uint32_t intrMask)</td></tr>
<tr class="memdesc:ga3038fbd14b4fef98a91a8713c559472d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the interrupt.  <a href="#ga3038fbd14b4fef98a91a8713c559472d">More...</a><br /></td></tr>
<tr class="separator:ga3038fbd14b4fef98a91a8713c559472d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae07d8e288f6863cef7e8fa37fa2c0f55"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gae07d8e288f6863cef7e8fa37fa2c0f55">Cy_SAR2_Channel_GetInterruptStatus</a> (PASS_SAR_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:gae07d8e288f6863cef7e8fa37fa2c0f55"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the channel interrupt register status.  <a href="#gae07d8e288f6863cef7e8fa37fa2c0f55">More...</a><br /></td></tr>
<tr class="separator:gae07d8e288f6863cef7e8fa37fa2c0f55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae6c9f7216068c6da70d77487d899b171"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gae6c9f7216068c6da70d77487d899b171">Cy_SAR2_Channel_GetInterruptStatusMasked</a> (PASS_SAR_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:gae6c9f7216068c6da70d77487d899b171"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns interrupt status.  <a href="#gae6c9f7216068c6da70d77487d899b171">More...</a><br /></td></tr>
<tr class="separator:gae6c9f7216068c6da70d77487d899b171"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga560d57348dd4ed077238eac2b08e8752"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga560d57348dd4ed077238eac2b08e8752">Cy_SAR2_Channel_SetInterrupt</a> (PASS_SAR_Type *base, uint32_t channel, uint32_t intrMask)</td></tr>
<tr class="memdesc:ga560d57348dd4ed077238eac2b08e8752"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers an interrupt with software.  <a href="#ga560d57348dd4ed077238eac2b08e8752">More...</a><br /></td></tr>
<tr class="separator:ga560d57348dd4ed077238eac2b08e8752"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga80c8989e4a28fdbd45c14a2356014fe5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga80c8989e4a28fdbd45c14a2356014fe5">Cy_SAR2_Diag_Init</a> (PASS_SAR_Type *base, const <a class="el" href="structcy__stc__sar2__diag__config__t.html">cy_stc_sar2_diag_config_t</a> *diagConfig)</td></tr>
<tr class="memdesc:ga80c8989e4a28fdbd45c14a2356014fe5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the diagnosis function.  <a href="#ga80c8989e4a28fdbd45c14a2356014fe5">More...</a><br /></td></tr>
<tr class="separator:ga80c8989e4a28fdbd45c14a2356014fe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf5f91292a3e1841b4b86f9e6e6788853"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gaf5f91292a3e1841b4b86f9e6e6788853">Cy_SAR2_Diag_Enable</a> (PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:gaf5f91292a3e1841b4b86f9e6e6788853"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the diagnostic function.  <a href="#gaf5f91292a3e1841b4b86f9e6e6788853">More...</a><br /></td></tr>
<tr class="separator:gaf5f91292a3e1841b4b86f9e6e6788853"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5ccb1a0ea6f543ecb1f85f502e9191a9"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga5ccb1a0ea6f543ecb1f85f502e9191a9">Cy_SAR2_Diag_Disable</a> (PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:ga5ccb1a0ea6f543ecb1f85f502e9191a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the diagnostic function.  <a href="#ga5ccb1a0ea6f543ecb1f85f502e9191a9">More...</a><br /></td></tr>
<tr class="separator:ga5ccb1a0ea6f543ecb1f85f502e9191a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6a00e61ed457bdd7c579a8dfff2a1835"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga6a00e61ed457bdd7c579a8dfff2a1835">Cy_SAR2_TriggerCalibrationUpdate</a> (PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:ga6a00e61ed457bdd7c579a8dfff2a1835"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers calibration update.  <a href="#ga6a00e61ed457bdd7c579a8dfff2a1835">More...</a><br /></td></tr>
<tr class="separator:ga6a00e61ed457bdd7c579a8dfff2a1835"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1122c77cd507a1d7a1a2bfb90bb265cb"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga1122c77cd507a1d7a1a2bfb90bb265cb">Cy_SAR2_IsCalibrationUpdateDone</a> (PASS_SAR_Type *base)</td></tr>
<tr class="memdesc:ga1122c77cd507a1d7a1a2bfb90bb265cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the status of calibration update.  <a href="#ga1122c77cd507a1d7a1a2bfb90bb265cb">More...</a><br /></td></tr>
<tr class="separator:ga1122c77cd507a1d7a1a2bfb90bb265cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga54fea03347c58a0c434326acf57f41df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga54fea03347c58a0c434326acf57f41df">Cy_SAR2_SetDigitalCalibrationValue</a> (PASS_SAR_Type *base, const <a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a> *digCalibConfig)</td></tr>
<tr class="memdesc:ga54fea03347c58a0c434326acf57f41df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure SAR ADC digital calibration value.  <a href="#ga54fea03347c58a0c434326acf57f41df">More...</a><br /></td></tr>
<tr class="separator:ga54fea03347c58a0c434326acf57f41df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad762ae318a7e1d0ec87018ce03f618f5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gad762ae318a7e1d0ec87018ce03f618f5">Cy_SAR2_GetDigitalCalibrationValue</a> (PASS_SAR_Type *base, <a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a> *digCalibConfig)</td></tr>
<tr class="memdesc:gad762ae318a7e1d0ec87018ce03f618f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the SAR ADC digital calibration value.  <a href="#gad762ae318a7e1d0ec87018ce03f618f5">More...</a><br /></td></tr>
<tr class="separator:gad762ae318a7e1d0ec87018ce03f618f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5ce0fad0ca5e8f9d0fee2278a7dcf318"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga5ce0fad0ca5e8f9d0fee2278a7dcf318">Cy_SAR2_SetAltDigitalCalibrationValue</a> (PASS_SAR_Type *base, const <a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a> *altDigCalibConfig)</td></tr>
<tr class="memdesc:ga5ce0fad0ca5e8f9d0fee2278a7dcf318"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures an alternate SAR digital calibration value.  <a href="#ga5ce0fad0ca5e8f9d0fee2278a7dcf318">More...</a><br /></td></tr>
<tr class="separator:ga5ce0fad0ca5e8f9d0fee2278a7dcf318"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga09a56d40cb909d0b9d18c438349be171"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga09a56d40cb909d0b9d18c438349be171">Cy_SAR2_GetAltDigitalCalibrationValue</a> (PASS_SAR_Type *base, <a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a> *altDigCalibConfig)</td></tr>
<tr class="memdesc:ga09a56d40cb909d0b9d18c438349be171"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets an alternate SAR digital calibration value.  <a href="#ga09a56d40cb909d0b9d18c438349be171">More...</a><br /></td></tr>
<tr class="separator:ga09a56d40cb909d0b9d18c438349be171"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2a2919b5813338f4c40a74246cef135e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga2a2919b5813338f4c40a74246cef135e">Cy_SAR2_SetAnalogCalibrationValue</a> (PASS_SAR_Type *base, <a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a> *analogCalibConfig)</td></tr>
<tr class="memdesc:ga2a2919b5813338f4c40a74246cef135e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures an SAR analog calibration value.  <a href="#ga2a2919b5813338f4c40a74246cef135e">More...</a><br /></td></tr>
<tr class="separator:ga2a2919b5813338f4c40a74246cef135e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad1fec61b0291c027777d3239d5ae0d89"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gad1fec61b0291c027777d3239d5ae0d89">Cy_SAR2_GetAnalogCalibrationValue</a> (PASS_SAR_Type *base, <a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a> *analogCalibConfig)</td></tr>
<tr class="memdesc:gad1fec61b0291c027777d3239d5ae0d89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets an SAR analog calibration value.  <a href="#gad1fec61b0291c027777d3239d5ae0d89">More...</a><br /></td></tr>
<tr class="separator:gad1fec61b0291c027777d3239d5ae0d89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga00e281a1954cef9b30234cf219ea8a69"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga00e281a1954cef9b30234cf219ea8a69">Cy_SAR2_SetAltAnalogCalibrationValue</a> (PASS_SAR_Type *base, <a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a> *altAnalogCalibConfig)</td></tr>
<tr class="memdesc:ga00e281a1954cef9b30234cf219ea8a69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures an alternate SAR analog calibration value.  <a href="#ga00e281a1954cef9b30234cf219ea8a69">More...</a><br /></td></tr>
<tr class="separator:ga00e281a1954cef9b30234cf219ea8a69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga42b1a283eae0cfb7fe268d233810906c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga42b1a283eae0cfb7fe268d233810906c">Cy_SAR2_GetAltAnalogCalibrationValue</a> (PASS_SAR_Type *base, <a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a> *altAnalogCalibConfig)</td></tr>
<tr class="memdesc:ga42b1a283eae0cfb7fe268d233810906c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets an alternate SAR analog calibration value.  <a href="#ga42b1a283eae0cfb7fe268d233810906c">More...</a><br /></td></tr>
<tr class="separator:ga42b1a283eae0cfb7fe268d233810906c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4de3705706a0602fb3f9127fe7545c0a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__sar2__enums.html#gae8a43f44bb634ee8c9d66a06e7b23a07">cy_en_sar2_ref_buf_mode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga4de3705706a0602fb3f9127fe7545c0a">Cy_SAR2_GetReferenceBufferMode</a> (PASS_EPASS_MMIO_Type *base)</td></tr>
<tr class="memdesc:ga4de3705706a0602fb3f9127fe7545c0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets ePASS MMIO reference buffer mode.  <a href="#ga4de3705706a0602fb3f9127fe7545c0a">More...</a><br /></td></tr>
<tr class="separator:ga4de3705706a0602fb3f9127fe7545c0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab2725bd7acf6658c561a1a4614c12c5d"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gab2725bd7acf6658c561a1a4614c12c5d">Cy_SAR2_SetReferenceBufferMode</a> (PASS_EPASS_MMIO_Type *base, <a class="el" href="group__group__sar2__enums.html#gae8a43f44bb634ee8c9d66a06e7b23a07">cy_en_sar2_ref_buf_mode_t</a> <a class="el" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a>)</td></tr>
<tr class="memdesc:gab2725bd7acf6658c561a1a4614c12c5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets ePASS MMIO reference buffer mode.  <a href="#gab2725bd7acf6658c561a1a4614c12c5d">More...</a><br /></td></tr>
<tr class="separator:gab2725bd7acf6658c561a1a4614c12c5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga63f7eeb6b7611a3fdd7dd71e7a4c3f64"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga63f7eeb6b7611a3fdd7dd71e7a4c3f64">Cy_SAR2_SetDebugFreezeMode</a> (PASS_EPASS_MMIO_Type *base, const <a class="el" href="structcy__stc__sar2__debug__freeze__config__t.html">cy_stc_sar2_debug_freeze_config_t</a> *debConfig)</td></tr>
<tr class="memdesc:ga63f7eeb6b7611a3fdd7dd71e7a4c3f64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the debug pause feature.  <a href="#ga63f7eeb6b7611a3fdd7dd71e7a4c3f64">More...</a><br /></td></tr>
<tr class="separator:ga63f7eeb6b7611a3fdd7dd71e7a4c3f64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9392763e46b64bce79fa25bb1e4f8150"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#ga9392763e46b64bce79fa25bb1e4f8150">Cy_SAR2_SetGenericTriggerInput</a> (PASS_EPASS_MMIO_Type *base, uint8_t numOfAdc, uint8_t triggerInputNumber, uint8_t genericTriggerValue)</td></tr>
<tr class="memdesc:ga9392763e46b64bce79fa25bb1e4f8150"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the generic trigger input selection.  <a href="#ga9392763e46b64bce79fa25bb1e4f8150">More...</a><br /></td></tr>
<tr class="separator:ga9392763e46b64bce79fa25bb1e4f8150"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad14be59b323bed125629c3d0729a2f64"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gad14be59b323bed125629c3d0729a2f64">Cy_SAR2_SetGenericTriggerOutput</a> (PASS_EPASS_MMIO_Type *base, uint8_t numOfAdc, uint8_t triggerOutputNumber, uint8_t genericTriggerValue)</td></tr>
<tr class="memdesc:gad14be59b323bed125629c3d0729a2f64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the generic output trigger selection.  <a href="#gad14be59b323bed125629c3d0729a2f64">More...</a><br /></td></tr>
<tr class="separator:gad14be59b323bed125629c3d0729a2f64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf1153ebd358ba9773267508fbb787550"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar2__functions.html#gaf1153ebd358ba9773267508fbb787550">Cy_SAR2_CalculateDieTemperature</a> (<a class="el" href="group__group__sar2__enums.html#ga0b86fdbdcc9cf30993bd15a5e8bdb83b">cy_en_sar2_vdda_range_t</a> VDDARange, uint16_t adcVtempRawValue, uint16_t adcVbgRawValue)</td></tr>
<tr class="memdesc:gaf1153ebd358ba9773267508fbb787550"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the internal temperature from ADC core using Vtemp.  <a href="#gaf1153ebd358ba9773267508fbb787550">More...</a><br /></td></tr>
<tr class="separator:gaf1153ebd358ba9773267508fbb787550"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gad6ddc69b82b06fda5952c5da00de35ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad6ddc69b82b06fda5952c5da00de35ed">&#9670;&nbsp;</a></span>Cy_SAR2_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_Init </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcy__stc__sar2__config__t.html">cy_stc_sar2_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the SAR2 block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR ADC block instance.</td></tr>
    <tr><td class="paramname">config</td><td>The pointer to the configuration structure <a class="el" href="structcy__stc__sar2__config__t.html">cy_stc_sar2_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="ga4a6b0afc4f6ff937cdcd885c6b039adb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4a6b0afc4f6ff937cdcd885c6b039adb">&#9670;&nbsp;</a></span>Cy_SAR2_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_DeInit </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>De-initializes the SAR ADC block, returns the register values to default. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>: The pointer to the SAR block. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae928dc6cfa80e6ee015be6aac6fc759e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae928dc6cfa80e6ee015be6aac6fc759e">&#9670;&nbsp;</a></span>Cy_SAR2_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_Enable </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the SAR ADC block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>: The pointer to the SAR block. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga3c9fe108014e660a2a2fdbfd51498641"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3c9fe108014e660a2a2fdbfd51498641">&#9670;&nbsp;</a></span>Cy_SAR2_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_Disable </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the SAR ADC block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>: The pointer to the SAR block. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaf3446eecc0c429c1c48015c63caa7abd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf3446eecc0c429c1c48015c63caa7abd">&#9670;&nbsp;</a></span>Cy_SAR2_GetPendingStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SAR2_GetPendingStatus </td>
          <td>(</td>
          <td class="paramtype">const PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the trigger pending status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Pending status. Each bit corresponds a channel, i.e. If bit0 is 1, ch.0 is pending for a trigger. </dd></dl>

</div>
</div>
<a id="ga060e3a398367dfd3ebb8c3ffdf4d8c69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga060e3a398367dfd3ebb8c3ffdf4d8c69">&#9670;&nbsp;</a></span>Cy_SAR2_GetWorkValidStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SAR2_GetWorkValidStatus </td>
          <td>(</td>
          <td class="paramtype">const PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the work register valid status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Work register valid status. Each bit corresponds a channel, i.e. If bit0 is 1, ch.0's work register is valid. </dd></dl>

</div>
</div>
<a id="ga461d4899aa62e578515fc635a85c3317"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga461d4899aa62e578515fc635a85c3317">&#9670;&nbsp;</a></span>Cy_SAR2_GetWorkRangeStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SAR2_GetWorkRangeStatus </td>
          <td>(</td>
          <td class="paramtype">const PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns work register range status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Work register range status. Each bit correspond a channel, i.e. If bit0 is 1, ch.0 detected a range. </dd></dl>

</div>
</div>
<a id="ga1600ba3065a78a4486df1a4a40b33bb6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1600ba3065a78a4486df1a4a40b33bb6">&#9670;&nbsp;</a></span>Cy_SAR2_GetWorkRangeHiStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SAR2_GetWorkRangeHiStatus </td>
          <td>(</td>
          <td class="paramtype">const PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns work register range high status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Work register range Hi status. Each bit corresponds a channel, i.e. If bit0 is 1, ch.0 detected "out of range" and the value was above the high threshold. </dd></dl>

</div>
</div>
<a id="gaafaff5c36852904ebb905bf2b5e0a305"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaafaff5c36852904ebb905bf2b5e0a305">&#9670;&nbsp;</a></span>Cy_SAR2_GetWorkPulseStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SAR2_GetWorkPulseStatus </td>
          <td>(</td>
          <td class="paramtype">const PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the work register pulse status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Work register pulse status. Each bit corresponds a channel, i.e. If bit0 is 1, ch.0 detected a pulse. </dd></dl>

</div>
</div>
<a id="gae5aadfc77328c0fe7cec48d8552aef92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae5aadfc77328c0fe7cec48d8552aef92">&#9670;&nbsp;</a></span>Cy_SAR2_GetResultValidStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SAR2_GetResultValidStatus </td>
          <td>(</td>
          <td class="paramtype">const PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns result register valid status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Result register pulse status. Each bit corresponds a channel, i.e. If bit0 is 1, ch.0's result register is valid. </dd></dl>

</div>
</div>
<a id="gacdd2a6f933a93fa1a043af11bc88b434"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacdd2a6f933a93fa1a043af11bc88b434">&#9670;&nbsp;</a></span>Cy_SAR2_GetResultRangeHiStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SAR2_GetResultRangeHiStatus </td>
          <td>(</td>
          <td class="paramtype">const PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns result register range high status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Result register range high. Each bit corresponds a channel, i.e. If bit0 is 1, ch.0 detected "out of range" and the value was above the high threshold. </dd></dl>

</div>
</div>
<a id="ga20289a8407d268ade39d00c18a7c14b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga20289a8407d268ade39d00c18a7c14b8">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_Channel_Init </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcy__stc__sar2__channel__config__t.html">cy_stc_sar2_channel_config_t</a> *&#160;</td>
          <td class="paramname"><em>channelConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes an SAR channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">channelConfig</td><td>The pointer to the configuration structure <a class="el" href="structcy__stc__sar2__channel__config__t.html">cy_stc_sar2_channel_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="ga73cc410d2594eb95b59957c1e22b7029"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga73cc410d2594eb95b59957c1e22b7029">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SAR2_Channel_DeInit </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stops and de-initializes the SAR channel register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga6cf749ec06d3ab25ce139975f7baafcf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6cf749ec06d3ab25ce139975f7baafcf">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_GetResult()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t Cy_SAR2_Channel_GetResult </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the conversion result and status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to an SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">status</td><td>The pointer that will return measurement status bits ORed. The pointer can be NULL, then, s status is not returned.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Conversion result. </dd></dl>

</div>
</div>
<a id="ga89d10dfaf605ba3a0455661377bc945d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga89d10dfaf605ba3a0455661377bc945d">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_GetWorkingData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t Cy_SAR2_Channel_GetWorkingData </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the working data and status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">status</td><td>The pointer that will return measurement status bits ORed. The pointer can be NULL, then, a status is not returned.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Conversion result. </dd></dl>

</div>
</div>
<a id="ga4cacd25abceca217f1dc8895173279b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4cacd25abceca217f1dc8895173279b7">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_GetGroupStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SAR2_Channel_GetGroupStatus </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the group conversion status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to an SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status The status of the group, conversion status bits ORed. </dd></dl>

</div>
</div>
<a id="ga2a109083e1c5a54d5078aad24e27577f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2a109083e1c5a54d5078aad24e27577f">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_Channel_Enable </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables a corresponding channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>To enable a group either start with enabling the last channel first and the first channel last, or start the trigger after all channels are enabled. </dd></dl>

</div>
</div>
<a id="gac798c61bb7491fcbd614195ed1247c9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac798c61bb7491fcbd614195ed1247c9c">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_Channel_Disable </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables a corresponding channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>To disable a group either stop the trigger first or begin with disabling the lowest channel first. </dd></dl>

</div>
</div>
<a id="ga07a7023e4f6db655204d25a21b036651"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga07a7023e4f6db655204d25a21b036651">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_SoftwareTrigger()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_Channel_SoftwareTrigger </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Issues a software start trigger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaec97a2bde0497f5e95deb60a5e9d081a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaec97a2bde0497f5e95deb60a5e9d081a">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_SetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_Channel_SetInterruptMask </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>intrMask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the channel interrupt. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">intrMask</td><td>The mask of interrupts. Select one or more values from <a class="el" href="group__group__sar2__macros__interrupt.html">Interrupt Masks</a> and "OR" them together:<ul>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gaa882e6a45272a4e28a148f6c496372c8">CY_SAR2_INT_GRP_DONE</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#ga851b8482e793166ede836f5f61885a92">CY_SAR2_INT_GRP_CANCELLED</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gad4c0851eeaa2f829dc12d5f9cf0f8846">CY_SAR2_INT_GRP_OVERFLOW</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gaebf7c7f3d1773208a2a5673ecdc7914c">CY_SAR2_INT_CH_RANGE</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#ga94327686364280e7158e8749325ecbbe">CY_SAR2_INT_CH_PULSE</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gac739535bade9be82e8bdfe04e21f0022">CY_SAR2_INT_CH_OVERFLOW</a> </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga1ea93e0b0cfafac4bfe7544933e16b30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1ea93e0b0cfafac4bfe7544933e16b30">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_GetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SAR2_Channel_GetInterruptMask </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns interrupt mask configuration. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Interrupt mask value <a class="el" href="group__group__sar2__macros__interrupt.html">Interrupt Masks</a> </dd></dl>

</div>
</div>
<a id="ga3038fbd14b4fef98a91a8713c559472d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3038fbd14b4fef98a91a8713c559472d">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_ClearInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_Channel_ClearInterrupt </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>intrMask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the interrupt. </p>
<p>The interrupt must be cleared with this function so that the hardware can set subsequent interrupts and those interrupts can be forwarded to the interrupt controller, if enabled.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">intrMask</td><td>The mask of interrupts to clear. Typically this will be the value returned from <a class="el" href="group__group__sar__functions__interrupt.html#gaddf21063ab5d851b7a658af1c3c07f65">Cy_SAR_GetInterruptStatus</a>. Alternately, select one or more values from <a class="el" href="group__group__sar2__macros__interrupt.html">Interrupt Masks</a> and "OR" them together.<ul>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gaa882e6a45272a4e28a148f6c496372c8">CY_SAR2_INT_GRP_DONE</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#ga851b8482e793166ede836f5f61885a92">CY_SAR2_INT_GRP_CANCELLED</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gad4c0851eeaa2f829dc12d5f9cf0f8846">CY_SAR2_INT_GRP_OVERFLOW</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gaebf7c7f3d1773208a2a5673ecdc7914c">CY_SAR2_INT_CH_RANGE</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#ga94327686364280e7158e8749325ecbbe">CY_SAR2_INT_CH_PULSE</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gac739535bade9be82e8bdfe04e21f0022">CY_SAR2_INT_CH_OVERFLOW</a> </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae07d8e288f6863cef7e8fa37fa2c0f55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae07d8e288f6863cef7e8fa37fa2c0f55">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_GetInterruptStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SAR2_Channel_GetInterruptStatus </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the channel interrupt register status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status Contents of the channel interrupt register. See <a class="el" href="group__group__sar2__macros__interrupt.html">Interrupt Masks</a>. </dd></dl>

</div>
</div>
<a id="gae6c9f7216068c6da70d77487d899b171"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae6c9f7216068c6da70d77487d899b171">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_GetInterruptStatusMasked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SAR2_Channel_GetInterruptStatusMasked </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns interrupt status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status Contents of the channel interrupt register. See <a class="el" href="group__group__sar2__macros__interrupt.html">Interrupt Masks</a>. </dd></dl>

</div>
</div>
<a id="ga560d57348dd4ed077238eac2b08e8752"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga560d57348dd4ed077238eac2b08e8752">&#9670;&nbsp;</a></span>Cy_SAR2_Channel_SetInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_Channel_SetInterrupt </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>intrMask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers an interrupt with software. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">intrMask</td><td>The mask of interrupts to set. Select one or more values from <a class="el" href="group__group__sar2__macros__interrupt.html">Interrupt Masks</a> and "OR" them together.<ul>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gaa882e6a45272a4e28a148f6c496372c8">CY_SAR2_INT_GRP_DONE</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#ga851b8482e793166ede836f5f61885a92">CY_SAR2_INT_GRP_CANCELLED</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gad4c0851eeaa2f829dc12d5f9cf0f8846">CY_SAR2_INT_GRP_OVERFLOW</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gaebf7c7f3d1773208a2a5673ecdc7914c">CY_SAR2_INT_CH_RANGE</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#ga94327686364280e7158e8749325ecbbe">CY_SAR2_INT_CH_PULSE</a></li>
<li><a class="el" href="group__group__sar2__macros__interrupt.html#gac739535bade9be82e8bdfe04e21f0022">CY_SAR2_INT_CH_OVERFLOW</a> </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga80c8989e4a28fdbd45c14a2356014fe5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga80c8989e4a28fdbd45c14a2356014fe5">&#9670;&nbsp;</a></span>Cy_SAR2_Diag_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_Diag_Init </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcy__stc__sar2__diag__config__t.html">cy_stc_sar2_diag_config_t</a> *&#160;</td>
          <td class="paramname"><em>diagConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the diagnosis function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">diagConfig</td><td>The pointer to the configuration structure <a class="el" href="structcy__stc__sar2__diag__config__t.html">cy_stc_sar2_diag_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="gaf5f91292a3e1841b4b86f9e6e6788853"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf5f91292a3e1841b4b86f9e6e6788853">&#9670;&nbsp;</a></span>Cy_SAR2_Diag_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_Diag_Enable </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the diagnostic function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware SAR block. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga5ccb1a0ea6f543ecb1f85f502e9191a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5ccb1a0ea6f543ecb1f85f502e9191a9">&#9670;&nbsp;</a></span>Cy_SAR2_Diag_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_Diag_Disable </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the diagnostic function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware SAR block. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga6a00e61ed457bdd7c579a8dfff2a1835"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6a00e61ed457bdd7c579a8dfff2a1835">&#9670;&nbsp;</a></span>Cy_SAR2_TriggerCalibrationUpdate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_TriggerCalibrationUpdate </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers calibration update. </p>
<p>After triggering, coherently copies the values from alternate calibration regs to the current calibration regs.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware SAR block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Set an alternate calibration value before calling this function. After triggering, calibration will be updated as soon as the SAR is idle or a "continuous" triggered group completes. To determine whether calibration update is done or not call the Cy_SAR2_IsCalibrationUpdateDone function. </dd></dl>

</div>
</div>
<a id="ga1122c77cd507a1d7a1a2bfb90bb265cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1122c77cd507a1d7a1a2bfb90bb265cb">&#9670;&nbsp;</a></span>Cy_SAR2_IsCalibrationUpdateDone()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE bool Cy_SAR2_IsCalibrationUpdateDone </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the status of calibration update. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware SAR block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>If true, calibration update is done. If false, calibration update is not yet done. </dd></dl>

</div>
</div>
<a id="ga54fea03347c58a0c434326acf57f41df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga54fea03347c58a0c434326acf57f41df">&#9670;&nbsp;</a></span>Cy_SAR2_SetDigitalCalibrationValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_SetDigitalCalibrationValue </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a> *&#160;</td>
          <td class="paramname"><em>digCalibConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure SAR ADC digital calibration value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">digCalibConfig</td><td>The pointer to the configuration structure <a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="gad762ae318a7e1d0ec87018ce03f618f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad762ae318a7e1d0ec87018ce03f618f5">&#9670;&nbsp;</a></span>Cy_SAR2_GetDigitalCalibrationValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_GetDigitalCalibrationValue </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a> *&#160;</td>
          <td class="paramname"><em>digCalibConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the SAR ADC digital calibration value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">digCalibConfig</td><td>The pointer to the output configuration structure <a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="ga5ce0fad0ca5e8f9d0fee2278a7dcf318"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5ce0fad0ca5e8f9d0fee2278a7dcf318">&#9670;&nbsp;</a></span>Cy_SAR2_SetAltDigitalCalibrationValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_SetAltDigitalCalibrationValue </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a> *&#160;</td>
          <td class="paramname"><em>altDigCalibConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures an alternate SAR digital calibration value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">altDigCalibConfig</td><td>The pointer to the configuration structure <a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="ga09a56d40cb909d0b9d18c438349be171"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga09a56d40cb909d0b9d18c438349be171">&#9670;&nbsp;</a></span>Cy_SAR2_GetAltDigitalCalibrationValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_GetAltDigitalCalibrationValue </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a> *&#160;</td>
          <td class="paramname"><em>altDigCalibConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets an alternate SAR digital calibration value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">altDigCalibConfig</td><td>The utput pointer to the configuration structure <a class="el" href="structcy__stc__sar2__digital__calibration__config__t.html">cy_stc_sar2_digital_calibration_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="ga2a2919b5813338f4c40a74246cef135e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2a2919b5813338f4c40a74246cef135e">&#9670;&nbsp;</a></span>Cy_SAR2_SetAnalogCalibrationValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_SetAnalogCalibrationValue </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a> *&#160;</td>
          <td class="paramname"><em>analogCalibConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures an SAR analog calibration value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">analogCalibConfig</td><td>The pointer to the configuration structure <a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="gad1fec61b0291c027777d3239d5ae0d89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad1fec61b0291c027777d3239d5ae0d89">&#9670;&nbsp;</a></span>Cy_SAR2_GetAnalogCalibrationValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_GetAnalogCalibrationValue </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a> *&#160;</td>
          <td class="paramname"><em>analogCalibConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets an SAR analog calibration value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">analogCalibConfig</td><td>The utput pointer to the configuration structure <a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="ga00e281a1954cef9b30234cf219ea8a69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga00e281a1954cef9b30234cf219ea8a69">&#9670;&nbsp;</a></span>Cy_SAR2_SetAltAnalogCalibrationValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_SetAltAnalogCalibrationValue </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a> *&#160;</td>
          <td class="paramname"><em>altAnalogCalibConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures an alternate SAR analog calibration value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">altAnalogCalibConfig</td><td>The pointer to the configuration structure <a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="ga42b1a283eae0cfb7fe268d233810906c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga42b1a283eae0cfb7fe268d233810906c">&#9670;&nbsp;</a></span>Cy_SAR2_GetAltAnalogCalibrationValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_GetAltAnalogCalibrationValue </td>
          <td>(</td>
          <td class="paramtype">PASS_SAR_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a> *&#160;</td>
          <td class="paramname"><em>altAnalogCalibConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets an alternate SAR analog calibration value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SAR instance.</td></tr>
    <tr><td class="paramname">altAnalogCalibConfig</td><td>The utput pointer to the configuration structure <a class="el" href="structcy__stc__sar2__analog__calibration__conifg__t.html">cy_stc_sar2_analog_calibration_conifg_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="ga4de3705706a0602fb3f9127fe7545c0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4de3705706a0602fb3f9127fe7545c0a">&#9670;&nbsp;</a></span>Cy_SAR2_GetReferenceBufferMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__sar2__enums.html#gae8a43f44bb634ee8c9d66a06e7b23a07">cy_en_sar2_ref_buf_mode_t</a> Cy_SAR2_GetReferenceBufferMode </td>
          <td>(</td>
          <td class="paramtype">PASS_EPASS_MMIO_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets ePASS MMIO reference buffer mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PASS instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gae8a43f44bb634ee8c9d66a06e7b23a07">cy_en_sar2_ref_buf_mode_t</a> </dd></dl>

</div>
</div>
<a id="gab2725bd7acf6658c561a1a4614c12c5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab2725bd7acf6658c561a1a4614c12c5d">&#9670;&nbsp;</a></span>Cy_SAR2_SetReferenceBufferMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SAR2_SetReferenceBufferMode </td>
          <td>(</td>
          <td class="paramtype">PASS_EPASS_MMIO_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sar2__enums.html#gae8a43f44bb634ee8c9d66a06e7b23a07">cy_en_sar2_ref_buf_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets ePASS MMIO reference buffer mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PASS instance.</td></tr>
    <tr><td class="paramname">mode</td><td>The reference buffer mode number. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga63f7eeb6b7611a3fdd7dd71e7a4c3f64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga63f7eeb6b7611a3fdd7dd71e7a4c3f64">&#9670;&nbsp;</a></span>Cy_SAR2_SetDebugFreezeMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_SetDebugFreezeMode </td>
          <td>(</td>
          <td class="paramtype">PASS_EPASS_MMIO_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcy__stc__sar2__debug__freeze__config__t.html">cy_stc_sar2_debug_freeze_config_t</a> *&#160;</td>
          <td class="paramname"><em>debConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the debug pause feature. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PASS instance.</td></tr>
    <tr><td class="paramname">debConfig</td><td>The utput pointer to the configuration structure <a class="el" href="structcy__stc__sar2__debug__freeze__config__t.html">cy_stc_sar2_debug_freeze_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="ga9392763e46b64bce79fa25bb1e4f8150"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9392763e46b64bce79fa25bb1e4f8150">&#9670;&nbsp;</a></span>Cy_SAR2_SetGenericTriggerInput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_SetGenericTriggerInput </td>
          <td>(</td>
          <td class="paramtype">PASS_EPASS_MMIO_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>numOfAdc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>triggerInputNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>genericTriggerValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the generic trigger input selection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PASS instance.</td></tr>
    <tr><td class="paramname">numOfAdc</td><td>The ADC channel number.</td></tr>
    <tr><td class="paramname">triggerInputNumber</td><td>The generic input trigger number to be set up.</td></tr>
    <tr><td class="paramname">genericTriggerValue</td><td>The generic input trigger to be used as a corresponding trigger input #.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="gad14be59b323bed125629c3d0729a2f64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad14be59b323bed125629c3d0729a2f64">&#9670;&nbsp;</a></span>Cy_SAR2_SetGenericTriggerOutput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> Cy_SAR2_SetGenericTriggerOutput </td>
          <td>(</td>
          <td class="paramtype">PASS_EPASS_MMIO_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>numOfAdc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>triggerOutputNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>genericTriggerValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the generic output trigger selection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PASS instance.</td></tr>
    <tr><td class="paramname">numOfAdc</td><td>The ADC channel number</td></tr>
    <tr><td class="paramname">triggerOutputNumber</td><td>The generic input trigger number to be set up.</td></tr>
    <tr><td class="paramname">genericTriggerValue</td><td>The generic input trigger to be used as a corresponding trigger input number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sar2__enums.html#gaea937df154cbde01e73658b1a7828591">cy_en_sar2_status_t</a> </dd></dl>

</div>
</div>
<a id="gaf1153ebd358ba9773267508fbb787550"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf1153ebd358ba9773267508fbb787550">&#9670;&nbsp;</a></span>Cy_SAR2_CalculateDieTemperature()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Cy_SAR2_CalculateDieTemperature </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__sar2__enums.html#ga0b86fdbdcc9cf30993bd15a5e8bdb83b">cy_en_sar2_vdda_range_t</a>&#160;</td>
          <td class="paramname"><em>VDDARange</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>adcVtempRawValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>adcVbgRawValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calculates the internal temperature from ADC core using Vtemp. </p>
<p>The API is implemented to calculate the temperature from the 2nd order equation of sort data with corrected class data. The API will convert sort data into [3][3] matrix and class data into [2][2] matrix.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">VDDARange</td><td>VDDA voltage range, <a class="el" href="group__group__sar2__enums.html#ga0b86fdbdcc9cf30993bd15a5e8bdb83b">cy_en_sar2_vdda_range_t</a>.</td></tr>
    <tr><td class="paramname">adcVtempRawValue</td><td>The ADC counts the raw value of the temperature diode.</td></tr>
    <tr><td class="paramname">adcVbgRawValue</td><td>The ADC counts raw value of the Vbg voltage.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Temperature Value </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
